from django.urls import path, include
from rest_framework.routers import DefaultRouter
from . import views

router = DefaultRouter()
router.register(r'cities', views.CityViewSet)
router.register(r'datacenters', views.DataCenterViewSet)
router.register(r'hosts', views.HostViewSet)
router.register(r'stats', views.HostStatisticsViewSet, basename='stats')

urlpatterns = [
    path('', include(router.urls)),
]